package com.edushare.common.vo;

import com.edushare.common.vo.auto._UserBatchLink;

public class UserBatchLink extends _UserBatchLink {
	private static final long serialVersionUID = 2969424033886938530L;
	public static final int ROLE_STUDENT = 10;
	public static final int ROLE_FACAD   = 20;
	
	public boolean isStudent(){
		if(getRoleFacad() == null)
			return false;
		if(getRoleFacad() != ROLE_FACAD)
			return true;
		return false;
	}
	
	public void setFacad(boolean isFacad){
		if(isFacad)
			setRoleFacad(ROLE_FACAD);
		else
			setRoleFacad(ROLE_STUDENT);
	}
	
	public boolean isFacad(){
		return (getRoleFacad() != null && getRoleFacad()== ROLE_FACAD);
	}
	
}
